LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libmujs
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_TAGS := optional

# Define our compiler flags
LOCAL_CFLAGS += -Wno-endif-labels -Wno-import -Wno-format
LOCAL_CFLAGS += -fno-strict-aliasing
LOCAL_CFLAGS += -fvisibility=hidden

ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -Darm
# remove this warning: "note: the mangling of 'va_list' has changed in GCC 4.4"
LOCAL_CFLAGS += -Wno-psabi
endif

LOCAL_C_INCLUDES := $(JNI_PATH) \
    $(JNI_PATH)/mujs \

LOCAL_SRC_FILES := one.c test/JNITest.cpp

LOCAL_LDFLAGS += -landroid -llog

include $(BUILD_SHARED_LIBRARY)

